package com.atguigu.gmall.order.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Description
 * @Return
 * @Author https://weiranyi.github.io
 * @Date Created in 2022-12-21 15:13
 **/
@NoArgsConstructor
@Data
public class OrderSubmitVo {

    @JsonProperty("consignee")
    private String consignee; // 收货人
    @JsonProperty("consigneeTel")
    private String consigneeTel; // 收货电话
    @JsonProperty("deliveryAddress")
    private String deliveryAddress; // 派送地址
    @JsonProperty("orderComment")
    private String orderComment;  // 订单备注
    @JsonProperty("orderDetailList")
    private List<OrderDetailListDTO> orderDetailList; // 此单购买的所有商品详情


    @NoArgsConstructor
    @Data
    public static class OrderDetailListDTO {
        @JsonProperty("imgUrl")
        private String imgUrl;
        @JsonProperty("skuName")
        private String skuName;
        @JsonProperty("orderPrice")
        private BigDecimal orderPrice;
        @JsonProperty("skuNum")
        private Integer skuNum;
        @JsonProperty("skuId")
        private Long skuId;
        @JsonProperty("hasStock")
        private String hasStock;
    }
}
